 module.exports = {
  devServer: {
    open: true,
    proxy: {
      "/api": {
        target: "http://management.api.asmm.vip/",
        ws: true,
        changOrigin: true, //允许跨域
        pathRewrite: {
          "^/api": "",
        },
      },
      "/img": {
        //代理请求图片的接口
        changeOrigin: true,
        secure: false,  
        target: "http://management.api.asmm.vip/",
        pathRewrite: {
          "^/img": "",
        },
      },
    },
  },
};
